import React from 'react'
import { useHistory } from 'react-router-dom'

const Login = () => {
  const history = useHistory()
  React.useEffect(() => {
    history.push('/a/b?id=1')
  }, [history])
  return <div>我是登录</div>
}

export default Login
